package com.sjd.mall.domain.dto.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sjd.mall.domain.dto.base.OrderNoRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 快递录入
 *
 * @author seer
 * @version 1.0
 * @date 2022/1/20 15:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class WebCourierEntryRequestDTO extends OrderNoRequestDTO {

    @ApiModelProperty(
            value = "快递公司",
            required = true,
            allowableValues = "字典：biz_courier_company"
    )
    @NotNull(message = "courierCompany is null")
    private String courierCompany;

    @ApiModelProperty(
            value = "快递单号",
            required = true
    )
    @NotNull(message = "courierNo is null")
    private String courierNo;

    @ApiModelProperty(
            value = "发货时间",
            required = true
    )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime deliverTime;
}
